package testing;

import acm.*;

import static org.junit.Assert.*;

import java.sql.SQLException;
import org.junit.Test;


public class JunitCaraOCruz {
	@Test
	public void probarMetodo() throws SQLException{
		CaraOCruz objeto_game = new CaraOCruz();

		assertTrue(objeto_game.jugada(5, "0 0 0 0 0").equals("Mary won 5 times and John won 0 times"));
		assertFalse(objeto_game.jugada(5, "0 1 0 0 0").equals("Mary won 5 times and John won 0 times"));
		assertTrue(objeto_game.jugada(5, "0 0 1 1 0").equals("Mary won 3 times and John won 2 times"));
		assertTrue(objeto_game.jugada(4, "1 0 0 0").equals("Mary won 3 times and John won 1 times"));
	
	}
}
